package com.agileboot.attendance.config;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 考勤模块配置类
 * 确保考勤模块下的所有控制器和服务被Spring正确扫描和加载
 */
@Configuration
@ComponentScan(basePackages = {
    "com.agileboot.attendance.controller",
    "com.agileboot.attendance.domain",
})
@MapperScan(value = "com.agileboot.attendance.domain", markerInterface = BaseMapper.class)
@ConditionalOnProperty(prefix = "attendance.module", name = "enabled", havingValue = "true", matchIfMissing = true)
public class AttendanceModuleConfig implements WebMvcConfigurer {

}
